/*
 * ImmediateNotifier.cpp
 *
 *  Created on: Jun 3, 2010
 *      Author: sdaniele
 */

#include "ImmediateNotifier.h"
namespace noti {

bool is_report_producers();

ImmediateNotifier::ImmediateNotifier(::std::string name, sc_event* event, const sc_clock* clk, bool is_thread)
	:EventUser(sc_module_name(name.c_str()), event, clk, is_thread)
{}

ImmediateNotifier::~ImmediateNotifier() {}


void ImmediateNotifier::do_method_work(){
	EventUser::m_event->notify();
	if(is_report_producers())
			EventUser::print_report();
}

void ImmediateNotifier::init_sensitive(){
	sensitive << m_clk.pos();
}

}
